Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate OGC API - Records #5

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Validate OGC API - Records #5

wants to merge 1 commit into from

Conversation

m-mohr
Copy link
Collaborator

@m-mohr m-mohr commented Oct 31, 2024

Chose a different approach than initially explored in #3 - this seems simpler and has less drawbacks, I think.

I tested it against an invalid version of the example and it reported an error and suceeds otherwise.

Just a couple of comments below on issues that need to be clarified before merging.

@m-mohr m-mohr requested a review from silvester-pari October 31, 2024 23:16
@@ -8,13 +8,24 @@ const {
THEMES_SCHEME
} = require('./definitions.js');

const RECORDS_CONFORMANCE_CLASS = "http://wis.wmo.int/spec/wcmp/2/conf/core"; // todo
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be the OGC API - Records - Part 1: Core conformance class, I think, but the example doesn't have it.
See also: ESA-EarthCODE/open-science-catalog-metadata#233 (comment)

@m-mohr m-mohr force-pushed the validate-records2 branch from 358c226 to 7bf896c Compare October 31, 2024 23:18
@@ -0,0 +1,775 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
Copy link
Collaborator Author

@m-mohr m-mohr Oct 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to change the JSON Schema version to draft-07 as 202012 is not supported by stac-node-validator right now, shouldn't change anything though.

We should probably update the file if updates come in etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant